package cn.wolfcode.trip.base.service.impl;

import cn.wolfcode.trip.base.domain.InterestingPeople;
import cn.wolfcode.trip.base.domain.Travel;
import cn.wolfcode.trip.base.mapper.InterestingPeopleMapper;
import cn.wolfcode.trip.base.mapper.TravelMapper;
import cn.wolfcode.trip.base.service.IInterestingPeopleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class InterestingPeopleServiceImpl implements IInterestingPeopleService {

    @Autowired
    private InterestingPeopleMapper interestingPeopleMapper;

    @Override
    public List<InterestingPeople> listByUserId(Long userId) {
        List<InterestingPeople> interestingPeople = interestingPeopleMapper.selectByUserId(userId);
        return interestingPeople;
    }
}
